package file;

import org.junit.Test;

import java.io.File;
import java.net.URL;

/**
 * Created by admin on 2017/5/27.
 */
public class ClazzLoad {
    @Test
    public void test01(){
        URL url = this.getClass().getResource("/");
        URL url2 = this.getClass().getClassLoader().getResource("");
        System.out.println(url.getFile());
        System.out.println(url2.getFile());
        File file = new File(url.getFile());
        System.out.println("======="+file.getAbsolutePath());
        System.out.println("=========="+(int)Character.MAX_VALUE+"=======");
    }
}
